using System.Text.Json.Serialization;

namespace Eamon.MeituanDotnetSDK.model.ddzh.merchantdata.merchantDataConsumption
{
    /// <summary>
    /// 消费信息
    /// </summary>
    public class ConsumptionInfo
    {
        /// <summary>
        /// 团购消费额
        /// </summary>
        [JsonPropertyName("tgConsumeAmount")]
        public double? TgConsumeAmount { get; set; }

        /// <summary>
        /// 团购消费验券数
        /// </summary>
        [JsonPropertyName("tgConsumeCount")]
        public int? TgConsumeCount { get; set; }

        /// <summary>
        /// 买单（包含闪惠及线下扫码支付）消费额
        /// </summary>
        [JsonPropertyName("mopayConsumeAmount")]
        public double? MopayConsumeAmount { get; set; }

        /// <summary>
        /// 买单（包含闪惠及线下扫码支付）消费订单数
        /// </summary>
        [JsonPropertyName("mopayConsumeCount")]
        public int? MopayConsumeCount { get; set; }

        /// <summary>
        /// 预订消费额
        /// </summary>
        [JsonPropertyName("reservationConsumeAmount")]
        public double? ReservationConsumeAmount { get; set; }

        /// <summary>
        /// 预订消费订单数
        /// </summary>
        [JsonPropertyName("reservationConsumeCount")]
        public int? ReservationConsumeCount { get; set; }

        /// <summary>
        /// 平台。0-全部，1-大众点评平台，2-美团平台
        /// </summary>
        [JsonPropertyName("platform")]
        public int? Platform { get; set; }

        public override string ToString()
        {
            return $"ConsumptionInfo{{TgConsumeAmount={TgConsumeAmount}, TgConsumeCount={TgConsumeCount}, MopayConsumeAmount={MopayConsumeAmount}, MopayConsumeCount={MopayConsumeCount}, ReservationConsumeAmount={ReservationConsumeAmount}, ReservationConsumeCount={ReservationConsumeCount}, Platform={Platform}}}";
        }
    }
}
